<?php /* Smarty version 2.6.26, created on 2014-09-30 15:09:58
         compiled from D:/wamp/www/Smarty-Framework/Index/Tpl/Member/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'css', 'D:/wamp/www/Smarty-Framework/Index/Tpl/Member/index.html', 9, false),array('modifier', 'date_format', 'D:/wamp/www/Smarty-Framework/Index/Tpl/Member/index.html', 39, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
            <title>后盾问答</title>
            <meta name="keywords" content="后盾问答"/>
            <meta name="description" content="后盾问答"/>
            <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
            <?php echo smarty_function_css(array('file' => 'member.css'), $this);?>

            <!--------------------中部-------------------->
            <div id='center'>
                <!-- 左侧 -->
                <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/left.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                <!-- 左侧结束 -->
                <div id='right'>

                    <p class='title'>我的首页</p>

                    <ul class='property'>
                        <li>金币：<span><?php echo $this->_tpl_vars['userinfo']['point']; ?>
</span></li>
                        <li>经验值：<span><?php echo $this->_tpl_vars['userinfo']['exp']; ?>
</span></li>
                        <li>采纳率：<span><?php echo $this->_tpl_vars['percent']; ?>
%</span></li>
                    </ul>
                    <div class='list'>
                        <p><span>我的提问 <b>(共<?php echo $this->_tpl_vars['userinfo']['ask']; ?>
条)</b></span><a href="<?php echo @__ROOT__; ?>
?c=Member&m=my_ask">更多>></a></p>
                        <table>
                            <?php if ($this->_tpl_vars['userinfo']['ask']): ?>
                            <tr>
                                <th class='t1'>标题</th>
                                <th>回答数</th>
                                <th class='t3'>更新时间</th>
                            </tr>
                            <?php unset($this->_sections['n']);
$this->_sections['n']['loop'] = is_array($_loop=$this->_tpl_vars['askData']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['n']['name'] = 'n';
$this->_sections['n']['show'] = true;
$this->_sections['n']['max'] = $this->_sections['n']['loop'];
$this->_sections['n']['step'] = 1;
$this->_sections['n']['start'] = $this->_sections['n']['step'] > 0 ? 0 : $this->_sections['n']['loop']-1;
if ($this->_sections['n']['show']) {
    $this->_sections['n']['total'] = $this->_sections['n']['loop'];
    if ($this->_sections['n']['total'] == 0)
        $this->_sections['n']['show'] = false;
} else
    $this->_sections['n']['total'] = 0;
if ($this->_sections['n']['show']):

            for ($this->_sections['n']['index'] = $this->_sections['n']['start'], $this->_sections['n']['iteration'] = 1;
                 $this->_sections['n']['iteration'] <= $this->_sections['n']['total'];
                 $this->_sections['n']['index'] += $this->_sections['n']['step'], $this->_sections['n']['iteration']++):
$this->_sections['n']['rownum'] = $this->_sections['n']['iteration'];
$this->_sections['n']['index_prev'] = $this->_sections['n']['index'] - $this->_sections['n']['step'];
$this->_sections['n']['index_next'] = $this->_sections['n']['index'] + $this->_sections['n']['step'];
$this->_sections['n']['first']      = ($this->_sections['n']['iteration'] == 1);
$this->_sections['n']['last']       = ($this->_sections['n']['iteration'] == $this->_sections['n']['total']);
?>
                            <tr>
                                <td class='t1'>
                                    <a href="<?php echo @__ROOT__; ?>
?c=Show&asid=<?php echo $this->_tpl_vars['askData'][$this->_sections['n']['index']]['ask_id']; ?>
&cid=<?php echo $this->_tpl_vars['askData'][$this->_sections['n']['index']]['cid']; ?>
"><?php echo $this->_tpl_vars['askData'][$this->_sections['n']['index']]['con']; ?>
</a><span> [<?php echo $this->_tpl_vars['askData'][$this->_sections['n']['index']]['title']; ?>
]</span>
                                </td>
                                <td><?php echo $this->_tpl_vars['askData'][$this->_sections['n']['index']]['num']; ?>
</td>
                                <td class='t3'><?php echo ((is_array($_tmp=$this->_tpl_vars['askData'][$this->_sections['n']['index']]['t'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M")); ?>
</td>
                            </tr>
                            <?php endfor; endif; ?>
                            <?php else: ?>
                            <tr height='140'>
                                <td>你还没有进行过提问</td>
                            </tr>
                            <?php endif; ?>
                        </table>
                    </div>
                    <div class='list'>
                        <p><span>我的回答 <b>(共<?php echo $this->_tpl_vars['userinfo']['answer']; ?>
条)</b></span><a href="<?php echo @__ROOT__; ?>
?c=Member&m=my_answer">更多>></a></p>
                        <table>
                            <?php if ($this->_tpl_vars['userinfo']['answer']): ?>
                            <tr>
                                <th class='t1'>标题</th>
                                <th>回答</th>
                                <th class='t3'>更新时间</th>
                            </tr>
                            <?php unset($this->_sections['m']);
$this->_sections['m']['loop'] = is_array($_loop=$this->_tpl_vars['ansData']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['m']['name'] = 'm';
$this->_sections['m']['show'] = true;
$this->_sections['m']['max'] = $this->_sections['m']['loop'];
$this->_sections['m']['step'] = 1;
$this->_sections['m']['start'] = $this->_sections['m']['step'] > 0 ? 0 : $this->_sections['m']['loop']-1;
if ($this->_sections['m']['show']) {
    $this->_sections['m']['total'] = $this->_sections['m']['loop'];
    if ($this->_sections['m']['total'] == 0)
        $this->_sections['m']['show'] = false;
} else
    $this->_sections['m']['total'] = 0;
if ($this->_sections['m']['show']):

            for ($this->_sections['m']['index'] = $this->_sections['m']['start'], $this->_sections['m']['iteration'] = 1;
                 $this->_sections['m']['iteration'] <= $this->_sections['m']['total'];
                 $this->_sections['m']['index'] += $this->_sections['m']['step'], $this->_sections['m']['iteration']++):
$this->_sections['m']['rownum'] = $this->_sections['m']['iteration'];
$this->_sections['m']['index_prev'] = $this->_sections['m']['index'] - $this->_sections['m']['step'];
$this->_sections['m']['index_next'] = $this->_sections['m']['index'] + $this->_sections['m']['step'];
$this->_sections['m']['first']      = ($this->_sections['m']['iteration'] == 1);
$this->_sections['m']['last']       = ($this->_sections['m']['iteration'] == $this->_sections['m']['total']);
?>
                            <tr>
                                <td class='t1'>
                                    <a href="<?php echo @__ROOT__; ?>
?c=Show&asid=<?php echo $this->_tpl_vars['ansData'][$this->_sections['m']['index']]['askid']; ?>
&cid=<?php echo $this->_tpl_vars['ansData'][$this->_sections['m']['index']]['cid']; ?>
"><?php echo $this->_tpl_vars['ansData'][$this->_sections['m']['index']]['acon']; ?>
</a><span> [<?php echo $this->_tpl_vars['ansData'][$this->_sections['m']['index']]['title']; ?>
]</span>
                                </td>
                                <td><?php echo $this->_tpl_vars['ansData'][$this->_sections['m']['index']]['ans']; ?>
</td>
                                <td class='t3'><?php echo ((is_array($_tmp=$this->_tpl_vars['ansData'][$this->_sections['m']['index']]['atime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %H:%M') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %H:%M')); ?>
</td>
                            </tr>
                            <?php endfor; endif; ?>
                            <?php else: ?>
                            <tr height='140'>
                                <td>你还没有进行过回答</td>
                            </tr>
                            <?php endif; ?>
                        </table>
                    </div>
                </div>
            </div>
            <!--------------------中部结束-------------------->

            <!--------------------底部-------------------->
            <!-- 底部 -->
            <div id='bottom'>
                <p>Copyright © 2013 Qihoo.Com All Rights Reserved 后盾网</p>
                <p>京公安网备xxxxxxxxxxxx</p>
            </div>
            <!--[if IE 6]>
                <script type="text/javascript" src="<?php echo @__PUBLIC__; ?>
/Js/iepng.js"></script>
                <script type="text/javascript">
                    DD_belatedPNG.fix('.logo','background');
                    DD_belatedPNG.fix('.nav-sel a','background');
                    DD_belatedPNG.fix('.ask-cate i','background');
                </script>
            <![endif]-->
            </body>
            </html>
            <!-- 底部结束 -->